package com.design.builder;

/**
 * 指挥者
 * @author <a href="jiangfeng.yan@ikang.com">jiangfeng</a>
 * @version 2021年06月16日 下午 4:56
 */
public class Director {
    private CarBuilder carBuilder;
    public void setCarBuilder(CarBuilder carBuilder) {this.carBuilder = carBuilder;}
    public void constructCar() {
        carBuilder.buildCar();
        carBuilder.setWheel();
        carBuilder.setEngine();
    }
}
